package com.bw.finance.eneity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Document(indexName = "bw_edu",type="_doc",shards = 1,replicas = 0)
public class EduCourse{

    @Id
    private String id;

    @Field(type= FieldType.Long)
    private Long childid;

    @Field(type = FieldType.Keyword)
    private String coursename;

    @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String coursetitle;

    @Field(type = FieldType.Text,analyzer = "ik_max_word",searchAnalyzer = "ik_smart")
    private String cousrsecontent;
}
